package com.yisu.expressway.ewf.common.utils;

import java.util.UUID;

/**
 * Created by LKL on 2016/8/25.
 */
public class TokenUtil {

    public static String generateToken() {
        UUID uuid = UUID.randomUUID();
        String token = uuid.toString();
        token = token.toLowerCase().replaceAll("-", "");
        return token;
    }

    public static void main(String[] args) {
        System.out.println(generateToken());
        System.out.println(generateToken().length());
    }
}
